/*
 * @Description: 
 * @Autor: lcz
 * @Date: 2022-06-15 12:41:52
 * @LastEditors: lcz
 * @LastEditTime: 2023-06-21 10:22:50
 */
import { FC } from 'react'
import Navbar from './layout/Navbar'
import routes from './routes'
import { renderRoutes, RouteConfig } from 'react-router-config'
import './App.css'

const App: FC = () => (
  <div className="App">
    <Navbar />
    {/* 设置routes的类型为RouteConfig[]，否则报错 */}
    {renderRoutes(routes as RouteConfig[])}
  </div>
)

export default App